﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HerGoS.Interfaces;

namespace HerGoS.Administration.Entities
{
    [Serializable]
    public class Area: HGSEntity
	{
		#region Construction
        public Area()  : base()
        {
            Initializer();
        }


        //public Area(string codigo ,string descripcion , Area areaSuperior)
        //{
        //    this.Codigo = codigo;
        //    this.Descripcion = descripcion;
        //    this.AreaSuperior = areaSuperior;
        //}

        //public Area SetSuperior(Area superior)
        //{
        //  this.AreaSuperior = superior;
        //  return this;
        //}




        private void Initializer()
        {
            this.Codigo = string.Empty;
            this.Descripcion = string.Empty;
        }

		#endregion

		#region DataMembers
        private string _Codigo;
        private string _Descripcion;
        private string _AreaSuperior;
        private int? _IdAreaSuperior;
		#endregion

		#region Properties


		public String Codigo {
            get { return _Codigo; }
            set { this._Codigo = value; }
		}

		public String Descripcion {
            get { return _Descripcion; }
            set { this._Descripcion = value; }
		}

		public string AreaSuperior {
            get { return _AreaSuperior; }
            set { this._AreaSuperior = value; }
		}

         public int? IdAreaSuperior  {
            get { return _IdAreaSuperior; }
            set { this._IdAreaSuperior = value; }
		}


        
        #endregion


        #region Overrides
        /// <summary>
		/// Returns the string of the object.
		/// </summary>
		/// <returns>String</returns>
		public override String ToString()
		{
			return this.Descripcion;
		}

		#endregion


	}
}



